package org.eclipseuseradmin.ui;

import org.osgi.service.useradmin.Group;
import org.osgi.service.useradmin.Role;

public interface IRoleElement {

	String getName();
	
	String getOrganizationUnit();
	
	void setOrganizationUnit(String organizationUnit);
	
	String getObjectClass();
	
	void setObjectClass(String objectClass);

	Group[] getParents();

	Role[] getChildren();

	boolean hasChildren();

	void addParent(Group parent);

	void removeParent(Group parent);

	void addChild(Role child);

	void removeChild(Role child);
	
	boolean acceptChild(Role child);
	
	String[] getAcceptedChildren();
	
	void delete();
}
